package com.mgq.generic;

import java.lang.reflect.Method;

/**
 * @author MaGuangQi
 * @description
 * @date 2021-12-26 11:51
 **/
public class TestInfo {
    public static void main(String[] args) {
        Class<InfoImpl> infoClass = InfoImpl.class;
        for (Method declaredMethod : infoClass.getDeclaredMethods()) {
            System.out.println(declaredMethod.getName()+":"+declaredMethod.getReturnType().getName());
        }
    }
}
